var app = getApp();
var host = app.data.host;
var httpUtil=require("../utils/httpUtil.js")
var cardListUrl = host + "getCardList";//卡列表
var cardCountsUrl=host+"getCardCounts";
var cardValuesUrl=host+"getCardValues";
var getCardImgsUrl = host +"getCardImgs";//卡片介绍图片
var getCardInfoUrl = host + "getCardInfo";//卡片介绍图片
//卡片列表
function getCardList(cb) {
  httpUtil.get(cardListUrl,null,cb);
}
//次卡列表
function getCardCounts(cb){
  httpUtil.get(cardCountsUrl,null,cb);
}
//储值卡列表
function getCardValues(cb){
  httpUtil.get(cardValuesUrl,null,cb);
}
//卡片介绍图片
function getCardImgs(data,cb){
  httpUtil.get(getCardImgsUrl,data,cb);
}
//获取卡片信息
function getCardInfo(data,cb){
  httpUtil.get(getCardInfoUrl, data, cb);
}
module.exports = {
  getCardList: getCardList,
  getCardImgs: getCardImgs,
  getCardCounts: getCardCounts,
  getCardValues: getCardValues,
  getCardInfo: getCardInfo
}